package com.weibo.login.service.imp;

import javax.servlet.http.HttpSession;

import org.apache.log4j.Logger;

import com.weibo.login.dao.LoginDao;
import com.weibo.login.dao.imp.LoginDaoImp;
import com.weibo.login.service.LoginService;
import com.weibo.user.User;

public class LoginServiceImp implements LoginService{
	private static Logger logger = Logger.getLogger(LoginServiceImp.class);
	private LoginDao loginDao = new LoginDaoImp();
	@Override
	public User getLoginUser(HttpSession session) {
		// TODO Auto-generated method stub
		return loginDao.getLoginUser(session);
	}

	@Override
	public User validate(String username, String password) {
		// TODO Auto-generated method stub
		return loginDao.validate(username, password);
	}

	@Override
	public boolean updateLoginDate(String user_id) {
		// TODO Auto-generated method stub
		return loginDao.updateLoginDate(user_id);
	}

}
